#!usr/bin/env python
# -*- coding:utf-8 -*-
"""
@author: muchen
@file: rest_client.py
@time: 2025/01/06
"""

import requests

# 初始化 requests.session()对象
req = requests.session()


class RestClient():
    def __init__(self):
        # 请求地址
        self.root_url = "http://10.10.10.192:8899"

    def excute_request(self, url, headers, **kwargs):
        # 发送请求
        return req.post(url=self.root_url+url, headers=headers, **kwargs)

